package com.yuyou.tas.report.mapper;

import com.yuyou.tas.report.vo.resp.QuesRecordVo;
import com.yuyou.tas.service.api.report.entity.ExamModelReportQues;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExamModelReportQuesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ExamModelReportQues record);

    void insertBatch(@Param(value = "list") List<ExamModelReportQues> list);

    ExamModelReportQues selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExamModelReportQues record);

    void deleteByStudentExamClass(@Param(value = "stuId") Long stuId , @Param(value = "examId") Long examId , @Param(value = "lessonClassId") Long lessonClassId);
    void deleteByClassActivity(@Param(value = "stuId") Long stuId , @Param(value = "activityId") Long activityId , @Param(value = "lessonClassId") Long lessonClassId);


    List<QuesRecordVo> getStuQues(@Param(value = "classId") Long classId , @Param(value = "modelId") Long modelId , @Param(value = "stuId") Long stuId);

    Integer deleteReportQuesByModelId(@Param(value = "modelId")Long modelId);
}